home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD018b.dsk
/
LOW RES PAINTER.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
4KB
|
93 lines
5 ONERR GOTO 800
6 PRINT CHR$(4)"BLOAD LOW RES PAINTER INST,A2048"
7 X = PEEK( -16299): GET ZZ$: PRINT ZZ$: TEXT
10 HOME
15 GOTO 700
20 GR
30 GOSUB 510
32 PRINT : INPUT "SELECT BACKGROUND COLOR --> ";BK: COLOR= BK
35 INPUT "SELECT BRUSH COLOR --> ";HUE
38 IF Q1$ = "Y" OR Q1$ = "YES" THEN GOTO 45
40 FOR COL = 0 TO 39: VLIN 0,39 AT COL: NEXT COL
45 HOME : VTAB 21
50 COLOR= HUE
60 COL = 20:ROW = 20
70 X = PEEK( -16368)
80 PLOT COL,ROW
90 HOME : VTAB 21: HTAB 12: PRINT "X","Y": HTAB 12: PRINT COL,ROW
100 X = PEEK( -16384)
110 IF X <128 THEN GOTO 100
111 IF X = 191 AND I = 0 THEN I = 1:X = PEEK( -16303):X = PEEK( -16299): POKE -16368,0: GOTO 100
112 IF X = 141 AND I = 1 THEN I = 0:X = PEEK( -16300):X = PEEK( -16304): POKE -16368,0: GOTO 100
115 IF X >136 AND X <142 THEN GOTO 165
116 IF X = 155 THEN X = PEEK( -16368): GOSUB 400
117 IF X = 209 THEN X = PEEK( -16368): GOTO 600
118 IF X = 195 THEN X = PEEK( -16368): GOTO 200
119 IF X = 216 THEN X = PEEK( -16368): HOME : VTAB 21: INPUT "NEW BRUSH COLOR -->";HUE: COLOR= HUE: GOTO 80
120 IF X = 201 THEN ROW = ROW -1
121 IF X = 202 THEN COL = COL -1
123 IF X = 203 THEN COL = COL +1
124 IF X = 205 THEN ROW = ROW +1
125 IF ROW >39 THEN ROW = ROW -1: PRINT CHR$(7)
150 IF SCRN( COL,ROW) < >HUE THEN GOTO 70
160 COLOR= BK: PLOT COL,ROW: COLOR= HUE: GOTO 70
165 COLOR= BK: PLOT COL,ROW: COLOR= HUE
170 X = X +64: GOTO 120
200 GOSUB 500
202 GR : GOSUB 510
203 PRINT : INPUT "SELECT NEW BRUSH COLOR --> ";HUE
205 PRINT CHR$(4);"BLOAD SCREEN"
210 COLOR= HUE: GOTO 80
400 REM MOVE WITHOUT DRAWING
401 IF PL$ < >"OFF" THEN COLOR= BK: PLOT COL,ROW
402 VTAB 24: PRINT "PLOT IS OFF";
405 PL$ = "OFF"
410 X = PEEK( -16384)
411 IF X <128 THEN GOTO 410
415 IF X = 155 THEN X = PEEK( -16368): HOME : VTAB 21: HTAB 12: PRINT "X","Y": HTAB 12: PRINT COL,ROW: GOTO 499
440 IF X = 201 THEN ROW = ROW -1
441 IF X = 202 THEN COL = COL -1
442 IF X = 203 THEN COL = COL +1
443 IF X = 205 THEN ROW = ROW +1
450 HOME : VTAB 21: HTAB 12: PRINT "X","Y": HTAB 12: PRINT COL,ROW: PRINT "PLOT IS OFF";
460 SC = SCRN( COL,ROW): COLOR= 0
465 FOR CT = 1 TO 5: PLOT COL,ROW: NEXT
467 COLOR= SC: PLOT COL,ROW: GOTO 480
480 X = PEEK( -16368): GOTO 410
499 PL$ = "ON": COLOR= HUE: PLOT COL,ROW: RETURN
500 HOME : VTAB 21: PRINT "ONE MOMENT ... I'M MEMORIZING THE SCREEN"
501 PRINT CHR$(4);"BSAVE SCREEN,A1024,L1024"
505 RETURN
510 COLOR= 5: VLIN 0,39 AT 3: VLIN 0,39 AT 36
520 FOR QQ = 0 TO 15: COLOR= QQ: VLIN 0,39 AT 4 +QQ *2: VLIN 0,39 AT 5 +QQ *2
521 NEXT QQ
530 HOME : VTAB 21: FOR WW = 0 TO 14 STEP 2: HTAB (6 +WW *4/2 - INT(WW/10)): PRINT WW;: NEXT WW
535 PRINT
540 FOR WW = 1 TO 15 STEP 2: HTAB (6 +WW *4/2 - INT(WW/10)): PRINT WW;: NEXT WW
550 RETURN
600 HOME : VTAB 22: PRINT "(RETURN ONLY WILL NOT SAVE PICTURE)": VTAB 21: INPUT "PICTURE NAME --> ";P$: IF P$ = "" THEN GOTO 699
610 HOME
620 PRINT CHR$(4);"BSAVE";P$;",A1024,L1024"
699 TEXT : HOME : END
700 VTAB 5: PRINT "DO YOU WISH TO WORK ON A SAVED PICTURE": VTAB 7: HTAB 18: INPUT "";Q1$
710 IF Q1$ = "Y" OR Q1$ = "YES" THEN GOTO 750
720 GOTO 20
750 VTAB 12: INPUT "NAME OF PICTURE ? ";PI$
760 GR : PRINT CHR$(4);"BLOAD";PI$
770 GOTO 32
800 REM ERROR ROUTINES
801 REM OUT OF BOUNDS ERROR
810 IF PEEK(222) < >53 THEN GOTO 850
812 PRINT CHR$(7)
813 IF COL <0 THEN COL = COL +1
814 IF COL >39 THEN COL = COL -1
815 IF ROW <0 THEN ROW = ROW +1
816 IF ROW >48 THEN ROW = ROW -1
820 X = PEEK( -16368)
840 IF PL$ = "OFF" THEN GOSUB 400
845 GOTO 70
850 REM OTHER ERRORS
855 IF PEEK(222) = 255 THEN GOTO 890
860 HOME : VTAB 23: PRINT CHR$(7);"ERROR # "; PEEK(222);" AT LINE "; PEEK(218) + PEEK(219) *256;
890 REM CTRL-C
899 STOP